﻿<UserControl x:Class="Shatkotha.WPF.Contacts.Views.ContactEditorView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300">
    <Grid>
        <StackPanel Orientation="Horizontal">
            <StackPanel Width="120">
                <Label Margin="0,3,0,3" Padding="3">Name</Label>
                <Label Margin="0,3,0,3" Padding="3">Age</Label>
                <Label Margin="0,3,0,3" Padding="3">Sex</Label>
                <Label Margin="0,3,0,3" Padding="3">Location</Label>
                <Label Margin="0,3,0,3" Padding="3">Email</Label>
                <Label Margin="0,3,0,3" Padding="3">Cell Number</Label>
            </StackPanel>
            <StackPanel>
                <TextBox x:Name="txtName" LostFocus="txtName_LostFocus" Text="{Binding PersonProperty.Name}" Width="120" Margin="0,3,0,3"></TextBox>
                <TextBox x:Name="txtAge" LostFocus="txtAge_LostFocus" Text="{Binding PersonProperty.Age}" Width="120" Margin="0,3,0,3"></TextBox>
                <ComboBox x:Name="txtSex"  Text="{Binding PersonProperty.Sex}" Width="120" Margin="0,3,0,3">
                    <ComboBox.Items>
                        <ComboBoxItem>Male</ComboBoxItem>
                        <ComboBoxItem>Female</ComboBoxItem>
                    </ComboBox.Items>
                </ComboBox>
                <TextBox x:Name="txtLocation" LostFocus="txtLocation_LostFocus" Text="{Binding PersonProperty.Location}" Width="120" Margin="0,3,0,3"></TextBox>
                <TextBox x:Name="txtEmail" LostFocus="txtEmail_LostFocus" Text="{Binding PersonProperty.Email}" Width="120" Margin="0,3,0,3"></TextBox>
                <TextBox x:Name="txtPhone" LostFocus="txtPhone_LostFocus" Text="{Binding PersonProperty.Phone}" Width="120" Margin="0,3,0,3"></TextBox>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
